QT += core gui serialport network charts sql websockets

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
DEFINES += QT_NO_OPENGL

# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    main.cpp \
    mainwindow.cpp \
    maindeal.cpp \
    agvhardware.cpp \
    navigator.cpp

HEADERS += \
    main.h \
    mainwindow.h \
    maindeal.h \
    agvhardware.h \
    navigator.h \

FORMS += \
    mainwindow.ui

TRANSLATIONS += \
    LHAGV_zh_CN.ts


include("./RViz/rviz.pri")
include("./GeneralTool/generaltool.pri")
include("./AdditionalUi/additionalUi.pri")
include("./AgvHardware/agvHardware.pri")
include("./NavigatorTool/navigatortool.pri")


# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

DISTFILES += \
    ./RViz/rviz.pri \
    ./GeneralTool/generaltool.pri \
    ./AdditionalUi/additionalUi.pri \
    ./AgvHardware/agvHardware.pri \
    ./NavigatorTool/navigatortool.pri \
    ../Readme.txt

LIBS += -L$$PWD/breakpad/lib/ -lbreakpad_client
INCLUDEPATH += $$PWD/breakpad/include
DEPENDPATH += $$PWD/breakpad/include
PRE_TARGETDEPS += $$PWD/breakpad/lib/libbreakpad_client.a

INCLUDEPATH += /opt/ros/kinetic/include
DEPENDPATH += /opt/ros/kinetic/include

INCLUDEPATH += /opt/ros/noetic/include
DEPENDPATH += /opt/ros/noetic/include

LIBS += -lboost_thread -lboost_system -lboost_program_options -lboost_filesystem
LIBS += -lboost_signals -lboost_regex -lboost_chrono -lboost_date_time -lboost_atomic
LIBS += -ljsoncpp -lconsole_bridge

LIBS += -L/opt/ros/kinetic/lib -lroscpp -lrospack -lpthread -lrosconsole -lrosconsole_log4cxx -lrosconsole_backend_interface
LIBS += -L/opt/ros/kinetic/lib -lnodeletlib -lbondcpp
LIBS += -L/opt/ros/kinetic/lib -lxmlrpcpp -lroscpp_serialization -lrostime  -lcpp_common  -lroslib -lyaml-cpp -lkdl_conversions
LIBS += -L/opt/ros/kinetic/lib -lactionlib -ltf -ltf2 -ltf2_ros -limage_transport -lmessage_filters -lclass_loader -lresource_retriever

LIBS += -L/opt/ros/noetic/lib -lroscpp -lrospack -lpthread -lrosconsole -lrosconsole_log4cxx -lrosconsole_backend_interface
LIBS += -L/opt/ros/noetic/lib -lnodeletlib -lbondcpp
LIBS += -L/opt/ros/noetic/lib -lxmlrpcpp -lroscpp_serialization -lrostime  -lcpp_common  -lroslib -lyaml-cpp -lkdl_conversions
LIBS += -L/opt/ros/noetic/lib -lactionlib -ltf -ltf2 -ltf2_ros -limage_transport -lmessage_filters -lclass_loader -lresource_retriever

